home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
program
/
tjgold.zip
/
INSTALL.003
/
DEMRD3.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1995-05-29
|
2KB
|
57 lines
{--------------------------------------------------------------------------}
{ Product: TechnoJock's Turbo Toolkit GOLD }
{ }
{ TTT GOLD - DEMO PROGRAM }
{ }
{ Copyright 1986-1995 TechnoJock Software, Inc. }
{ All Rights Reserved }
{ Restricted by License }
{--------------------------------------------------------------------------}
{Description: DEMRD3.PAS
Illustrates the PromptReal function.
}
Program DemRd3;
{$I GOLDFLAG.INC}
uses DOS,CRT, GoldReal, GoldAttr, GoldMisc,
GoldFast, GoldRead, GoldIO, GoldWin, GoldStr, GoldKey;
var TmpMsg: string;
TmpNum: extended;
procedure SetScreen;
{}
begin
Clear(WhiteOnCyan,'▒');
ClearLine(1,WhiteOnBlue);
WriteCenter(1,UseTInt,' Demo of PromptReal from GOLDREAD ');
WriteAt(1,2,BlueOnRed,replicate(80,'▀'));
WriteAT(70,2,WhiteOnBlack,'TTT Gold!');
ClearLine(25,YellowOnBlue);
end; { SetScreen }
begin
{$IFOPT D+}
HeapRecord;
{$ENDIF}
SetScreen;
MouseShow(true);
TmpNum := PromptReal(0,0,5,'Please enter correct weight',' GoldRead Real Input Demo ',0.0,0.0,1500.0);
if ReadVars.LastAction = Escaped then
TmpMsg := 'You pressed Escape!'
else if TmpNum = 0 then
TmpMsg := 'You didn''t make an entry'
else
TmpMsg := '^You entered '+RealToStr(TmpNum,Floating);
PromptOK(' PromptReal ',TmpMsg);
delay(500);
MouseShow(false);
Clear(LightGrayOnBlack,' ');
{$IFOPT D+}
HeapCheck;
{$ENDIF}
end.